package com.yuzhenxin.coursesystem.config.enums;

import com.example.framework.common.exception.ErrorCode;
import com.example.framework.common.exception.enums.GlobalErrorCodeConstants;

public interface ErrorCodeConstants extends GlobalErrorCodeConstants {

    ErrorCode OLD_PASSWORD_ERROR = new ErrorCode(50001, "旧密码错误");

    ErrorCode INVALID_USER_TYPE = new ErrorCode(50011, "无效的用户类型");

    ErrorCode NO_SUCH_TEACHER = new ErrorCode(50031, "不存在该教师");

    ErrorCode NO_SUCH_COURSE = new ErrorCode(50041, "不存在该课程，请先添加课程");
    ErrorCode SCHEDULE_EXIST = new ErrorCode(50042, "已存在该排课");
    ErrorCode CAPACITY_FULL = new ErrorCode(50043, "选课失败，课程容量已满");
    ErrorCode HAVE_SELECTED = new ErrorCode(50044, "选课失败，你已选该门课程");

}
